<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> 
<meta name="format-detection" content="telephone=no">
<title>客户详情 - {$cwgl_config['webtitle']}</title>
<link href="{$templateurl}/css/css.css" rel="stylesheet" type="text/css">
<link href="{$templateurl}/css/common.css" rel="stylesheet" type="text/css">
</head>
<body >

<div class="head">
	<div class="content-top clearFix">
    <a href="{$urltk}">
	 <em class="return"><</em>
	<span class="fanhui">返回</span>
	</a>
   </div>
</div>
	
<div id="content" >
  
   <div class="k-manage-bd">
      <div class="titbox">
	    <h3 class="htit">客户详情</h3>
	  </div>
	  
	  <div class="ser-orderlist">
	      <ul class="orderlist">
		    <li style="border-bottom:0px;">
			   <div class="picbox">
			  	 <div class="pic">
				 	{if $usershow1[avatar]}
					<img src="{php echo tomedia($usershow1[avatar]);}" onerror="this.src='./resource/images/nopic.jpg'; this.title='缩略图片未上传.'" />
					{else}
					<img src="../addons/{$_GPC['m']}/template/noavatar_middle.gif"/>
					{/if}
				 </div>
			   </div>
		      <div class="orderinfo">
			      <h3 class="htit">{$srdb['compname']}</h3>
				  <p class="pinfo">
				    <span>联系人：{$srdb['name']}</span><br/>
					<span>联系电话： {$srdb['phone']}</span>
				  </p>
				  <p>服务期限：
					{if $newtimes > $srdb['deadline']}
					<font color="#CC0000">已到期</font>，重新<a href="{$urltk}&op=setup&id={$srdb[id]}" class="btnptspt">设置</a>
					{else}
					{php echo date('Y-m-d H:i', $srdb['deadline']);}
					{/if}
				  </p>
				  <p>专属会计：{if $staff_show['name']}{$staff_show['name']}&nbsp;&nbsp;<a href="{php echo $this->createMobileUrl('admin_userlist_fp', array('did' => $srdb[id]));}" class="btnptspt">更换</a>{else}未分配，快去<a href="{php echo $this->createMobileUrl('admin_userlist_fp', array('did' => $srdb[id]));}" class="btnptspt">分配</a>吧！{/if}</p>
				  <p>简介：{php echo html_entity_decode($srdb[message]);}</p>
			  </div>
			</li>
			</ul>
	  </div>
	  
   </div>
   
</div>

<style>
	.btnptspt{
		padding-left:8px; padding-right:8px; padding-bottom:5px; padding-top:5px;
	   color:#fff;
	   border-radius:5px;
	   background-color:#EF4F4F;
   }
	.footer li{ line-height:50px;}
</style>
<div class="footer clearFix">
<ul>
	<li class="on">
	  <a href="{php echo $this->createMobileUrl('admin_userlist_notice', array('uid' => $srdb[uid],'type' => 1,'idt' => $srdb[id]))}">
	  <p>发布通知</p>
	  </a>
	 </li>
	<li class="on">
	  <a href="{php echo $this->createMobileUrl('admin_userlist_paycost', array('uid' => $srdb[uid],'idt' => $srdb[id]))}">
	  <p>催款管理</p>
	  </a>
	</li>
	<li class="on">
	  <a href="{$urltk}&op=editor&id={$srdb[id]}">
	  <p>修改</p>
	  </a>
	  </li>
	<li class="on">
	  <a href="{$urltk}&op=delete&id={$srdb[id]}">
	  <p>删除</p>
	  </a>
	</li>
</ul>	
</div>
</body>
</html>
